package com.smmisia;


import cn.dev33.satoken.SaManager;
import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import org.dromara.easyes.starter.register.EsMapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableCaching
@EnableScheduling
@EnableAsync
@EnableFeignClients
@EnableCreateCacheAnnotation
@EnableMethodCache(basePackages = "com.smmisia.article")
@EsMapperScan("com.smmisia.article.es.mapper")
public class articleApplication {
    public static void main(String[] args) {
        SpringApplication.run(articleApplication.class, args);
        SaManager.getSaTokenDao().set("name2", "value2", 100000);
    }
}
